-
Notifications
You must be signed in to change notification settings - Fork 621
[Dashboard] Fix smart account options validation for non-EIP4337 execution modes #7537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dashboard] Fix smart account options validation for non-EIP4337 execution modes #7537
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
WalkthroughThe conditional logic in the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant AuthOptionsForm
participant Toast
User->>AuthOptionsForm: Submit form
AuthOptionsForm->>AuthOptionsForm: Check useSmartAccount
alt useSmartAccount is true
AuthOptionsForm->>AuthOptionsForm: Check executionMode
alt executionMode is "EIP4337"
AuthOptionsForm->>AuthOptionsForm: Set accountFactoryAddress based on accountFactoryType
alt Custom address required but missing
AuthOptionsForm->>Toast: Show error toast
AuthOptionsForm-->>User: Return early
end
end
end
AuthOptionsForm-->>User: Proceed with submission
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (2)`**/*.{ts,tsx}`: Write idiomatic TypeScript with explicit function declarations ...
📄 Source: CodeRabbit Inference Engine (CLAUDE.md) List of files the instruction was applied to:
`apps/{dashboard,playground-web}/**/*.{tsx,ts}`: Import UI primitives from `@/co...
📄 Source: CodeRabbit Inference Engine (CLAUDE.md) List of files the instruction was applied to:
🧠 Learnings (2)📓 Common learningsapps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/ecosystem/[slug]/(active)/configuration/components/client/auth-options-form.client.tsx (10)⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
🔇 Additional comments (1)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7537 +/- ##
=======================================
Coverage 51.89% 51.89%
=======================================
Files 954 954
Lines 64342 64342
Branches 4241 4241
=======================================
Hits 33393 33393
Misses 30841 30841
Partials 108 108
🚀 New features to boost your workflow:
|
size-limit report 📦
|

PR-Codex overview
This PR refines the logic for handling
smartAccountOptionsin theauth-options-form.client.tsxfile. It adds a check fordata.executionModewithin the scope ofdata.useSmartAccount, improving clarity and structure in the code.Detailed summary
data.executionModeinside theif (data.useSmartAccount)block.accountFactoryAddressfromstringtostring | undefined.accountFactoryTypecases.Summary by CodeRabbit